﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Test2.Model;

namespace Test2.View
{
    public partial class ToonFacturen : Form
    {
        private iDatabaseRepository databaseRepository = new DatabaseLinqRepository();

        public ToonFacturen()
        {
            InitializeComponent();
        }

        private void Facturen_Load(object sender, EventArgs e)
        {
            fillDGVFacturen();
        }

        public void fillDGVFacturen()
        {
            DataTable dtFacturen = new DataTable();
            dtFacturen = databaseRepository.getFacturen();
            dgvFacturen.DataSource = dtFacturen;
        }
    }
}
